// filesender.h
#ifndef FILESENDER_H
#define FILESENDER_H

#include <QObject>
#include <QUdpSocket>
#include <QFile>

class FileSender : public QObject {
    Q_OBJECT

public:
    FileSender(const QString &filePath, const QString &host, quint16 port, QObject *parent = nullptr);
    void startSending();
public:
signals:
    void finished();

private:
    QString filePath;
    QString host;
    quint16 port;
    QUdpSocket *udpSocket;
};

#endif // FILESENDER_H
